home *** CD-ROM | disk | FTP | other *** search
- Path: xs4all.nl!not-for-mail
- From: yrozijn@xs4all.nl (Yvon Rozijn)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Passing arguments to a thread
- Date: 6 Feb 1996 18:59:20 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <4f88e8$9bl@news.xs4all.nl>
- References: <4ed1eq$nfi@newsy.ifm.liu.se> <Z9W-x*5yf@yaps.rhein.de> <4f25d2$ak8@newsy.ifm.liu.se>
- NNTP-Posting-Host: mas01-09.dial.xs4all.nl
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
-
- Martin Blom (d93marbl@isy.liu.se) wrote:
- : >> Is there a (nice) way to pass arguments to a new process?
- : I create it with dos.library/CreateNewProc().
- : But using NP_Arguments seems to be too much work.
- : I wish there was a NP_UserData...
-
- There is... kind of:
-
- struct Process *proc;
-
- Forbid();
- proc=CreateNewProc(...);
- if(proc) proc->pr_Task.tc_UserData=whatever_you_want;
- Permit();
-
- Yvon.
- --
- ___ _
- Q : | #| : \|/ http://www. : [_]_
- -<_>- Yvon : | ==| yrozijn@ : >WWW< xs4all.nl/ : === ) Amiga
- / \ Rozijn : `---' xs4all.nl : /|\ ~yrozijn : O 4000
-